package n9.echo.test;

import com.n9.qq.client.FromServiceMsg;
import com.n9.qq.client.ToServiceMsg;

/**
 * @author ice
 * @since 2019/1/31 17:47
 */
public class EchoToServiceMsg implements ToServiceMsg {
    private Integer id;

    private String msg;

    private FromServiceMsg fromServiceMsg;

    public EchoToServiceMsg(Integer id, String msg) {
        this.id = id;
        this.msg = msg;
    }

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public byte[] getBytes() {
        return msg.getBytes();
    }

    @Override
    public FromServiceMsg getFromServiceMsg() {
        return fromServiceMsg;
    }

    @Override
    public void setFromServiceMsg(FromServiceMsg fromServiceMsg) {
        this.fromServiceMsg = fromServiceMsg;
    }
}
